﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfIndex2.aspx.cs" Inherits="msBsc.WebUi.wMall.Public.wfIndex2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>包车旅游专家，旅游因你而定_地接客</title>
    <meta name="keywords" content="地接客，旅游，包车，旅游包车，包车旅游" />
    <meta name="description" content="地接客包车旅游网，提供专业的旅游包车服务，围绕个性化旅游核心，地接客根据地方特色及游客需求，提供个性化的高质量的旅游服务，让游客在旅途中得到一个愉快的自由的旅游体验！地接客包车旅游网，包车旅游专家，旅游因您而定！邀请您的加入" />
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/jqPlugin/SelectSimu/css/base.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Public/sIndex.css" rel="stylesheet" />


</head>
<body>
    <div class="wf_all"> 
        <div id="divLoginInfo">
              <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo() %>
        </div>
        <div class="contentInfo">
            <div class="chName"></div>
            <div class="enName"></div>
            <div class="search">
                <div class="destination">目的地</div>
                <div id="outerInner" class="select"></div>
                <div id="province" class="select"></div>
                <div id="city" class="select"></div>
                <input type="button" class="btnSearch" value="搜索" onclick="search()" />
            </div>
            <p class="djk_info">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地接客包车旅游网，提供专业的旅游包车服务，围绕个性化旅游核心，地接客根据地方特色及游客需求，提供个性化的高质量的旅游服务，让游客在旅途中得到一个愉快的自由的旅游体验！地接客包车旅游网，包车旅游专家，旅游因您而定！邀请您的加入！</p>
        </div>
        

    <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    </div>

    <!--start JS引用-->
    <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
    <script src="/jqPlugin/js/jQueryForm.js"></script>
    <script src="/jqPlugin/js/jBase.js"></script>
    <script src="/jqPlugin/js/jBPage.js"></script>
    <script src="/jqPlugin/js/laytpl.js"></script>
    <script src="/jqPlugin/SelectSimu/js/SelectSimu.js"></script>
    <!--end JS引用-->

    <script type="text/ecmascript">
        //function laySvcList() {
        //    laytpl(_html).render(SvcListData, function (render) {
        //        $("#divSvcList").prepend(render);
        //    });
        //};
        //laySvcList();
        setArea("outerInner", 200, 1, 1, ["DF6723BE-A25C-4F77-BB49-A1662D3E6F2A"], ["中国"]);
        setArea("province", 200, 2, 1, ["AEF39D8E-D298-4AF1-AEC5-2B00D237F5F5"], ["北京"]);
        setArea("city", 200, 3, 1, [""], ["全部"]);
        var parentsId = "00000000-0000-0000-0000-000000000000";
        var GtGrid1Action;
        function btnDo(sEbtn) {
            GtGrid1Action = sEbtn;
            var opart = GetGtParam("true");
            ajaxComm(opart);
        };

        function setArea(input, width, zIndex, listNum, listValue, listOption) {
            $("#" + input).SelectSimu({
                width: width,
                zIndex: zIndex,
                listNum: listNum,
                listValue: listValue,
                listOption: listOption,
                imgSrc: '/jqPlugin/SelectSimu/img/icon_down.png'
            })
        }

        var currentOuterInnerId = "";
        var currentProvinceId = "";

        //收索按钮
        function search() {
            var outerInner = $("#outerInner input").val();
            var province = $("#province input").val();
            var city = $("#city input").val();
            if (outerInner == undefined || outerInner == null) {
                outerInner = ""
            }
            if (province == undefined || province == null) {
                province = ""
            }
            if (city == undefined || city == null) {
                city = ""
            }
            window.location.href = "/wp_VehicleList.htm?countryId=" + outerInner + "&cityId=" + province + "&destionId=" + city;
        }

        function updateSelet(inputId, valueData) {
            var selectValue = $("#" + inputId + " .selectList ul");
            selectValue.html("");
            var data = eval(valueData);
            for (var i = 0; i < data.length; i++) {
                selectValue.append('<li data-value="' + data[i].ID + '">' + data[i].Name + '</li>');
            }
            if (data.length > 0) {
                $("#" + inputId + " input").val(data[0].ID);
                $("#" + inputId + " span").text(data[0].Name);
            }
        }

        //执行AJAX调用时获取参数
        function GetGtParam(isAll) {
            var _jsParam = new jsonRow();
            _jsParam.AddCell("parentsId", parentsId);
            _jsParam.AddCell("isAll", isAll);
            _jsParam.AddCell("ACTION", GtGrid1Action);
            return _jsParam;
        };

        (function () {

            //jQuery.loadHtml('/pgajax.axd?GETLOGIN=1').done(function (_rets) {
            //    if (_rets) { $("#divLoginInfo").html(_rets); }
            //});


            $('#outerInner .selectList li').live('click', function () {
                var outerInnerId = this.getAttribute('data-value');
                if (currentOuterInnerId==outerInnerId) {
                    return;
                }
                currentOuterInnerId = outerInnerId;
                parentsId = outerInnerId;
                btnDo("getArea2");
            });
            $('#province .selectList li').live('click', function () {
                var provinceId = this.getAttribute('data-value');
                if (provinceId==currentProvinceId) {
                    return;
                }
                currentProvinceId = provinceId;
                parentsId = provinceId;
                btnDo("getArea3");
            });
        })();
        btnDo("initplace");
    </script>

</body>
</html>
